from logging import root
from tkinter.tix import Tree


class Node:
     def __init__(self,node,type='dir') :
         self.node=node
         self.type=type
         self.children=[]
         self.parent=None

if __name__=="__main__":
    n=Node("hello")
    n2=Node("world")
    n.children.append(n2)#父亲生孩子
    n2.parent=n #孩子找父亲
    
